package com.book.service.serviceImpl;

import com.baomidou.mybatisplus.mapper.Condition;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.book.entity.Category;
import com.book.mapper.CategoryMapper;
import com.book.service.CategoryService;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper,Category> implements CategoryService {
    @Override
    public Category findById(String cId) {
        Wrapper<Category> con=new Condition();
        con.eq("c_id",cId);
        return selectOne(con);
    }
}
